<template>
  <div class="about-page">
    <div class="container">
      <div class="page-header">
        <h1 class="page-title">关于博客</h1>
      </div>
      
      <div class="about-content">
        <div class="about-section">
          <h2 class="section-title">博客介绍</h2>
          <p class="section-text">
            欢迎来到我的个人技术博客！这里是我分享前端开发经验、技术教程和行业见解的地方。
            我专注于Vue.js、React、JavaScript等前端技术，同时也关注用户体验设计和性能优化。
          </p>
          <p class="section-text">
            通过这个博客，我希望能够帮助其他开发者解决实际问题，共同学习和成长。
            每一篇文章都凝聚了我的实践经验和深度思考。
          </p>
        </div>
        
        <div class="about-section">
          <h2 class="section-title">内容范围</h2>
          <div class="topics-grid">
            <div class="topic-card" v-for="topic in topics" :key="topic.title">
              <h3 class="topic-title" v-text="topic.title"></h3>
              <p class="topic-description" v-text="topic.description"></p>
            </div>
          </div>
        </div>
        
        <div class="about-section">
          <h2 class="section-title">联系我</h2>
          <p class="section-text">
            如果您有任何问题、建议或合作意向，欢迎通过以下方式联系我：
          </p>
          <div class="contact-info">
            <p><strong>邮箱：</strong>zhangsan@example.com</p>
            <p><strong>GitHub：</strong><a href="#" class="contact-link">github.com/zhangsan</a></p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'AboutPage',
  data() {
    return {
      topics: [
        {
          title: '前端框架',
          description: 'Vue.js、React、Angular等主流前端框架的使用技巧和最佳实践。'
        },
        {
          title: 'JavaScript',
          description: 'JavaScript核心概念、ES6+新特性、异步编程等深入解析。'
        },
        {
          title: 'CSS/样式',
          description: '现代CSS技术、响应式设计、动画效果等样式解决方案。'
        },
        {
          title: '性能优化',
          description: '前端性能优化策略、加载优化、渲染优化等技术分享。'
        },
        {
          title: '工具链',
          description: 'Webpack、Vite、Babel等开发工具的配置和使用经验。'
        },
        {
          title: '用户体验',
          description: 'UI/UX设计原则、交互设计、可访问性等用户体验相关内容。'
        }
      ]
    }
  }
}
</script>

<style scoped>
.about-page {
  width: 100%;
  padding: 2rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.page-title {
  font-size: 2rem;
  color: #333;
  margin: 0;
  position: relative;
}

.page-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #667eea, #764ba2);
  margin: 0.5rem 0;
  border-radius: 2px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.section-title {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #333;
  position: relative;
  padding-bottom: 0.8rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, #667eea, #764ba2);
  border-radius: 3px;
}

.section-text {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.topic-card {
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.topic-card:hover {
  transform: translateY(-5px);
  border-color: #667eea;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.topic-title {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.topic-description {
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.contact-info {
  color: #666;
  line-height: 1.6;
}

.contact-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.contact-link:hover {
  color: #764ba2;
  text-decoration: none;
}

@media (max-width: 768px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
}
</style>